package com.xwltz.core.constants;

/**
 * @description 通用常量
 * @information on version 1.0 be created by xwltz at 2021/12/28 10:38
 */

public class Constants {
	// UTF-8 字符集
	public static final String UTF8 = "UTF-8";

	// GBK 字符集
	public static final String GBK = "GBK";

	// md5 加密秘钥
	public static final String passwordCode = "pfGbWZl8";

	// http请求
	public static final String HTTP = "http://";

	// https请求
	public static final String HTTPS = "https://";

	// 通用成功标识
	public static final String SUCCESS = "0";

	// 通用失败标识
	public static final String FAIL = "1";

	// 登录成功
	public static final String LOGIN_SUCCESS = "Success";

	// 注销
	public static final String LOGOUT = "Logout";

	// 注册
	public static final String REGISTER = "Register";

	// 登录失败
	public static final String LOGIN_FAIL = "Error";

	// 验证码 redis key
	public static final String CAPTCHA_CODE_KEY = "captcha_codes:";

	// 登录用户 redis key
	public static final String LOGIN_TOKEN_KEY = "login_tokens:";

	// 防重提交 redis key
	public static final String REPEAT_SUBMIT_KEY = "repeat_submit:";

	// 限流 redis key
	public static final String RATE_LIMIT_KEY = "rate_limit:";

	// 验证码有效期（分钟）
	public static final Integer CAPTCHA_EXPIRATION = 2;

	// 令牌
	public static final String TOKEN = "token";

	// 令牌前缀
	public static final String TOKEN_PREFIX = "Bearer ";

	// 令牌前缀
	public static final String LOGIN_USER_KEY = "login_user_key";

	// 用户ID
	public static final String JWT_USERID = "userid";

	// 用户名称
	// public static final String JWT_USERNAME = Claims.SUBJECT;

	// 用户头像
	public static final String JWT_AVATAR = "avatar";

	// 创建时间
	public static final String JWT_CREATED = "created";

	// 用户权限
	public static final String JWT_AUTHORITIES = "authorities";

	// 参数管理 cache key
	public static final String SYS_CONFIG_KEY = "sys_config:";

	// 字典管理 cache key
	public static final String SYS_DICT_KEY = "sys_dict:";

	//region 百度统计API配置项

	/// <summary>
	/// 登陆地址
	/// </summary>
	public final String LoginUrl = "https://api.baidu.com/sem/common/HolmesLoginService";
	/// <summary>
	/// 报告地址
	/// </summary>
	public final String ReportUrl = "https://api.baidu.com/json/tongji/v1/ReportService";
	/// <summary>
	/// 用户名
	/// </summary>
	public final String UserName = "admin";
	/// <summary>
	/// 密码
	/// </summary>
	public final String Password = "123456";
	/// <summary>
	/// Token
	/// </summary>
	public final String Token = "388d77a58cfe248158d7792c8bf1a3e8";
	/// <summary>
	/// UUID
	/// </summary>
	//public final String Uuid = Guid().NewGuid().ToString("N").ToUpper();
	/// <summary>
	/// 账户类型
	/// </summary>
	public final String AccountType = "1";
	//endregion

	//region 阿里云通用配置项

	/// <summary>
	/// AccessKeyId
	/// </summary>
	public static String AccessKeyId = "LTAIzQfxgKR6iyne";
	/// <summary>
	/// AccessKeySecret
	/// </summary>
	public static String AccessKeySecret = "sgYFDe5PStF1mUasP8DiVc8S3dJxj2";

	//endregion

	//region 阿里云对象存储配置项

	public static String EndPoint = "oss-cn-shanghai.aliyuncs.com";
	public static String DirToDownload = "";
	public static String FileToUpload = "";
	public static String BigFileToUpload = "";
	public static String ImageFileToUpload = "";
	public static String CallbackServer = "";

	//endregion

	//region 阿里大于短信服务配置项

	/// <summary>
	/// 短信API产品名称
	/// </summary>
	public static String Product = "Dysmsapi";
	/// <summary>
	/// 短信API产品域名
	/// </summary>
	public static String Domain = "dysmsapi.aliyuncs.com";
	/// <summary>
	/// 短信签名
	/// </summary>
	public static String SignName = "毕业设计登陆验证码";
	/// <summary>
	/// 短信模板
	/// </summary>
	public static String TemplateCode = "SMS_71340386";

	//endregion
}
